<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>拍卖列表</title>
</head>
<body>

<table class="ui-table">
    <thead>
        <tr>
            <th>序号</th>
            <th>辅助标识键</th>
            <th>拍卖物品</th>
            <th>限时（min）</th>
            <th>创建时间</th>
            <th>基准价格（元）</th>
            <th>最高报价</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
    </thead>

    <tbody>
        <tr th:each="info,infoStat : ${page.list}" >
            <td th:text="${infoStat.index}"></td>
            <td th:text="${info.id}"></td>
            <td th:text="${info.goodName}"></td>
            <td th:text="${info.limitTime}+'分钟'"></td>
            <td th:text="${#dates.format(info.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="'￥'+${info.initPrice}"></td>
            <td style="color: red" th:text="'￥'+${info.highestPrice}"></td>
            <td  style="color: orange"   th:text="${info.status==2?'已结束':'进行中'}"></td>


            <td th:if="${info.status == 1}" >
                <a th:if="${info.offerId == null}" href="javascript:void(0)" style="color: #2a80eb" th:onclick="|baojia('${info.id}')|"  >我要报价</a>
                <a th:if="${info.offerId!=null}" href="javascript:void(0)" style="color: orange"    th:text="'￥'+${info.price}"></a>
                <a th:if="${info.offerId!=null}" href="javascript:void(0)" style="color: #2a80eb" th:onclick="|baojiaEdit('${info.id}','${info.price}')|"  >修改</a>
            </td>
<!--            <td th:if="${info.status == 2}" >-->
<!--                <a th:if="${info.offerId == null}" style="color: darkgray"   >已结束（未出价）</a>-->
<!--                <a th:if="${info.offerId!=null}" style="color: darkgray"    th:text="'￥'+${info.price}"></a>-->
<!--            </td>-->

        </tr>
    </tbody>
</table>
<!-- 底部分页 -->
<!-- 底部分页 -->
<form id="form" style="display: flex;justify-content: center">
    当前页  （<a  th:text="${page.currentPage+1}"  />）
    <a onclick="loadPage('/offer/list', - 1)" th:if="${page.currentPage > 0}">上一页</a>
    <a onclick="loadPage('/offer/list',1)" th:if = "${page.currentPage < (page.totalPage - 1)}">下一页</a>
    共      <a style="color: #2a80eb"  th:text="${page.total}" />条|
    <a style="color: #2a80eb"  th:text="${page.totalPage}" />页
    每页    <a style="color: #f59b00"  th:text="${page.pageSize}" />条

    <input type="hidden" name="pageSize" th:value="${page.pageSize}" />
    <input name="currentPage" id="currentPage" type="hidden" th:value="${page.currentPage}"  />
    <input name="flag" id="flag" type="hidden" value="0"   />
</form>



</body>
</html>